package com.itqian.seller.form;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.math.BigDecimal;

/**
 * @author shishuqian
 * date 2022/3/22
 * time 12:29
 **/
@Data
public class FoodInfoForm {

    private Integer foodId;

    @NotBlank(message = "菜品名不能为空")
    @Size(max = 32,message = "菜品名称长度最大为32")
    private String foodName;

    @NotNull(message = "菜品单价不能为空")
    private BigDecimal foodPrice;

    @Size(max = 128,message = "菜品描述最大128")
    private String foodDescription;

    private String foodIcon;

    @NotNull(message = "菜品类别不能为空")
    private Integer categoryType;

    private Boolean foodStatus;
}
